package com.gitee.zeric.tenantdb.demo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * 租户配置
 *
 * @author zj
 * @date 2022/11/25
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class TenantInfo extends Model<TenantInfo> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 数据源url
     */
    @TableField("datasource_url")
    private String datasourceUrl;

    /**
     * 数据源用户名
     */
    @TableField("datasource_username")
    private String datasourceUsername;

    /**
     * 数据源密码
     */
    @TableField("datasource_password")
    private String datasourcePassword;

    /**
     * 数据源驱动
     */
    @TableField("datasource_driver")
    private String datasourceDriver;

    /**
     * 数据源映射类
     */
    @TableField("datasource_class")
    private String datasourceClass;

}
